package com.ttxs.uaa.vo;

import com.ttxs.common.core.annotation.Excel;
import com.ttxs.common.core.utils.poi.ExcelUtil;
import lombok.Data;

import java.io.FileInputStream;
import java.util.List;

@Data
public class ImportUserVO {
    @Excel(name = "登录名称")
    private String username;
    @Excel(name = "昵称")
    private String nickName;
    @Excel(name = "密码")
    private String encodedPassword;
    /**角色ID,英文逗号分割*/
    @Excel(name = "角色ID")
    private Long[] roleIds;

    public static void main(String[] args) throws Exception {
        ExcelUtil<ImportUserVO> util = new ExcelUtil<>(ImportUserVO.class);
        List<ImportUserVO> list = util.importExcel(new FileInputStream("d:/a.xlsx"));
        System.out.println("list = " + list);
    }
}